
import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', () => {
  const user = reactive({
    username:"",
    token:""
  })
  return { 
    user
   }
},
{
  persist:{
      key:"user",
      enabled:true,
      storage:sessionStorage
  }
})